export const patientLabData = {
  patients: [
    {
      "patient_id": "PT2025001",
      "name": "黎天剑",
      examinationList: [
        {
          "examination_date": "2025-04-12",
          "creatinine": {
            "value": 89,
            "unit": "μmol/L",
            "status": "正常范围内"
          },
          "urea": {
            "value": 5.8,
            "unit": "mmol/L",
            "status": "正常范围内"
          },
          "blood_pressure": {
            "value": "138/85",
            "unit": "mmHg",
            "status": "超高"
          },
          "bmi": {
            "value": 26.4,
            "unit": "kg/m²",
            "status": "超重"
          },
          "uric_acid": {
            "blood_uric_acid": {
              "value": 428,
              "unit": "μmol/L",
              "status": "偏高"
            },
            "24h_uric_acid": {
              "value": 3.8,
              "unit": "mmol/24h",
              "status": "正常"
            },
            "uric_acid_clearance": {
              "value": 6.2,
              "unit": "ml/min",
              "status": "偏低"
            }
          },
          "24h_urine_test": {
            "feua": {
              "value": 4.8,
              "unit": "%",
              "status": "偏低"
            },
            "uric_acid_excretion": {
              "value": 485,
              "unit": "mg/24h",
              "status": "偏低"
            },
            "uacr": {
              "value": 98,
              "unit": "ml/min",
              "status": "正常"
            }
          },
          "blood_biochemistry": {
            "glucose": {
              "value": 5.4,
              "unit": "mmol/L",
              "status": "正常"
            },
            "total_cholesterol": {
              "value": 5.2,
              "unit": "mmol/L",
              "status": "偏高"
            },
            "triglycerides": {
              "value": 1.8,
              "unit": "mmol/L",
              "status": "正常"
            },
            "crp": {
              "value": 3.2,
              "unit": "mg/L",
              "status": "正常"
            }
          },
          "urinalysis": {
            "ph": {
              "value": 6.2,
              "status": "正常"
            },
            "specific_gravity": {
              "value": 1.020,
              "status": "正常"
            },
            "protein": {
              "value": "阴性",
              "status": "正常"
            },
            "leukocytes": {
              "value": "阴性",
              "status": "正常"
            }
          },
          "blood_uric_acid_trend": {
            "data": [
              {"time": "2024-10", "value": 418},
              {"time": "2024-11", "value": 528},
              {"time": "2024-12", "value": 460},
              {"time": "2025-01", "value": 518},
              {"time": "2025-02", "value": 468},
              {"time": "2025-03", "value": 428}
            ]
          },
          "uric_acid_trend": {
            "current": 428,
            "unit": "μmol/L",
            "status": "轻度偏高",
            "reference_range": {
              "male": "150~420 μmol/L",
              "female": "90~360 μmol/L"
            }
          }
        },
        {
          "examination_date": "2025-03-15",
          "creatinine": {
            "value": 89,
            "unit": "μmol/L",
            "status": "正常范围内"
          },
          "urea": {
            "value": 5.8,
            "unit": "mmol/L",
            "status": "正常范围内"
          },
          "blood_pressure": {
            "value": "138/85",
            "unit": "mmHg",
            "status": "超高"
          },
          "bmi": {
            "value": 26.4,
            "unit": "kg/m²",
            "status": "超重"
          },
          "uric_acid": {
            "blood_uric_acid": {
              "value": 428,
              "unit": "μmol/L",
              "status": "偏高"
            },
            "24h_uric_acid": {
              "value": 3.8,
              "unit": "mmol/24h",
              "status": "正常"
            },
            "uric_acid_clearance": {
              "value": 6.2,
              "unit": "ml/min",
              "status": "偏低"
            }
          },
          "24h_urine_test": {
            "feua": {
              "value": 4.8,
              "unit": "%",
              "status": "偏低"
            },
            "uric_acid_excretion": {
              "value": 485,
              "unit": "mg/24h",
              "status": "偏低"
            },
            "uacr": {
              "value": 98,
              "unit": "ml/min",
              "status": "正常"
            }
          },
          "blood_biochemistry": {
            "glucose": {
              "value": 5.4,
              "unit": "mmol/L",
              "status": "正常"
            },
            "total_cholesterol": {
              "value": 5.2,
              "unit": "mmol/L",
              "status": "偏高"
            },
            "triglycerides": {
              "value": 1.8,
              "unit": "mmol/L",
              "status": "正常"
            },
            "crp": {
              "value": 3.2,
              "unit": "mg/L",
              "status": "正常"
            }
          },
          "urinalysis": {
            "ph": {
              "value": 6.2,
              "status": "正常"
            },
            "specific_gravity": {
              "value": 1.020,
              "status": "正常"
            },
            "protein": {
              "value": "阴性",
              "status": "正常"
            },
            "leukocytes": {
              "value": "阴性",
              "status": "正常"
            }
          },
          "blood_uric_acid_trend": {
            "data": [
              {"time": "2024-10", "value": 418},
              {"time": "2024-11", "value": 528},
              {"time": "2024-12", "value": 460},
              {"time": "2025-01", "value": 518},
              {"time": "2025-02", "value": 468},
              {"time": "2025-03", "value": 428}
            ]
          },
          "uric_acid_trend": {
            "current": 427,
            "unit": "μmol/L",
            "status": "轻度偏高",
            "reference_range": {
              "male": "150~420 μmol/L",
              "female": "90~360 μmol/L"
            }
          }
        },
        {
          "examination_date": "2025-02-05",
          "creatinine": {
            "value": 89,
            "unit": "μmol/L",
            "status": "正常范围内"
          },
          "urea": {
            "value": 5.8,
            "unit": "mmol/L",
            "status": "正常范围内"
          },
          "blood_pressure": {
            "value": "138/85",
            "unit": "mmHg",
            "status": "超高"
          },
          "bmi": {
            "value": 26.4,
            "unit": "kg/m²",
            "status": "超重"
          },
          "uric_acid": {
            "blood_uric_acid": {
              "value": 428,
              "unit": "μmol/L",
              "status": "偏高"
            },
            "24h_uric_acid": {
              "value": 3.8,
              "unit": "mmol/24h",
              "status": "正常"
            },
            "uric_acid_clearance": {
              "value": 6.2,
              "unit": "ml/min",
              "status": "偏低"
            }
          },
          "24h_urine_test": {
            "feua": {
              "value": 4.8,
              "unit": "%",
              "status": "偏低"
            },
            "uric_acid_excretion": {
              "value": 485,
              "unit": "mg/24h",
              "status": "偏低"
            },
            "uacr": {
              "value": 98,
              "unit": "ml/min",
              "status": "正常"
            }
          },
          "blood_biochemistry": {
            "glucose": {
              "value": 5.4,
              "unit": "mmol/L",
              "status": "正常"
            },
            "total_cholesterol": {
              "value": 5.2,
              "unit": "mmol/L",
              "status": "偏高"
            },
            "triglycerides": {
              "value": 1.8,
              "unit": "mmol/L",
              "status": "正常"
            },
            "crp": {
              "value": 3.2,
              "unit": "mg/L",
              "status": "正常"
            }
          },
          "urinalysis": {
            "ph": {
              "value": 6.2,
              "status": "正常"
            },
            "specific_gravity": {
              "value": 1.020,
              "status": "正常"
            },
            "protein": {
              "value": "阴性",
              "status": "正常"
            },
            "leukocytes": {
              "value": "阴性",
              "status": "正常"
            }
          },
          "blood_uric_acid_trend": {
            "data": [
              {"time": "2024-10", "value": 418},
              {"time": "2024-11", "value": 528},
              {"time": "2024-12", "value": 460},
              {"time": "2025-01", "value": 518},
              {"time": "2025-02", "value": 468},
              {"time": "2025-03", "value": 428}
            ]
          },
          "uric_acid_trend": {
            "current": 428,
            "unit": "μmol/L",
            "status": "轻度偏高",
            "reference_range": {
              "male": "150~420 μmol/L",
              "female": "90~360 μmol/L"
            }
          }
        },
      ]
    },
    {
      "patient_id": "PT2025002",
      "name": "纪建源",
      examinationList: [
        {
          "examination_date": "2025-04-12",
          "creatinine": {
            "value": 85,
            "unit": "μmol/L",
            "status": "正常范围内"
          },
          "urea": {
            "value": 5.5,
            "unit": "mmol/L",
            "status": "正常范围内"
          },
          "blood_pressure": {
            "value": "135/82",
            "unit": "mmHg",
            "status": "超高"
          },
          "bmi": {
            "value": 25.8,
            "unit": "kg/m²",
            "status": "超重"
          },
          "uric_acid": {
            "blood_uric_acid": {
              "value": 435,
              "unit": "μmol/L",
              "status": "偏高"
            },
            "24h_uric_acid": {
              "value": 3.6,
              "unit": "mmol/24h",
              "status": "正常"
            },
            "uric_acid_clearance": {
              "value": 6.0,
              "unit": "ml/min",
              "status": "偏低"
            }
          },
          "24h_urine_test": {
            "feua": {
              "value": 4.5,
              "unit": "%",
              "status": "偏低"
            },
            "uric_acid_excretion": {
              "value": 470,
              "unit": "mg/24h",
              "status": "偏低"
            },
            "uacr": {
              "value": 95,
              "unit": "ml/min",
              "status": "正常"
            }
          },
          "blood_biochemistry": {
            "glucose": {
              "value": 5.3,
              "unit": "mmol/L",
              "status": "正常"
            },
            "total_cholesterol": {
              "value": 5.1,
              "unit": "mmol/L",
              "status": "偏高"
            },
            "triglycerides": {
              "value": 1.7,
              "unit": "mmol/L",
              "status": "正常"
            },
            "crp": {
              "value": 3.0,
              "unit": "mg/L",
              "status": "正常"
            }
          },
          "urinalysis": {
            "ph": {
              "value": 6.1,
              "status": "正常"
            },
            "specific_gravity": {
              "value": 1.018,
              "status": "正常"
            },
            "protein": {
              "value": "阴性",
              "status": "正常"
            },
            "leukocytes": {
              "value": "阴性",
              "status": "正常"
            }
          },
          "blood_uric_acid_trend": {
            "data": [
              {"time": "2024-10", "value": 418},
              {"time": "2024-11", "value": 528},
              {"time": "2024-12", "value": 460},
              {"time": "2025-01", "value": 518},
              {"time": "2025-02", "value": 468},
              {"time": "2025-03", "value": 428}
            ]
          },
          "uric_acid_trend": {
            "current": 435,
            "unit": "μmol/L",
            "status": "轻度偏高",
            "reference_range": {
              "male": "150~420 μmol/L",
              "female": "90~360 μmol/L"
            }
          }
        },
        {
          "examination_date": "2025-03-15",
          "creatinine": {
            "value": 85,
            "unit": "μmol/L",
            "status": "正常范围内"
          },
          "urea": {
            "value": 5.5,
            "unit": "mmol/L",
            "status": "正常范围内"
          },
          "blood_pressure": {
            "value": "135/82",
            "unit": "mmHg",
            "status": "超高"
          },
          "bmi": {
            "value": 25.8,
            "unit": "kg/m²",
            "status": "超重"
          },
          "uric_acid": {
            "blood_uric_acid": {
              "value": 435,
              "unit": "μmol/L",
              "status": "偏高"
            },
            "24h_uric_acid": {
              "value": 3.6,
              "unit": "mmol/24h",
              "status": "正常"
            },
            "uric_acid_clearance": {
              "value": 6.0,
              "unit": "ml/min",
              "status": "偏低"
            }
          },
          "24h_urine_test": {
            "feua": {
              "value": 4.5,
              "unit": "%",
              "status": "偏低"
            },
            "uric_acid_excretion": {
              "value": 470,
              "unit": "mg/24h",
              "status": "偏低"
            },
            "uacr": {
              "value": 95,
              "unit": "ml/min",
              "status": "正常"
            }
          },
          "blood_biochemistry": {
            "glucose": {
              "value": 5.3,
              "unit": "mmol/L",
              "status": "正常"
            },
            "total_cholesterol": {
              "value": 5.1,
              "unit": "mmol/L",
              "status": "偏高"
            },
            "triglycerides": {
              "value": 1.7,
              "unit": "mmol/L",
              "status": "正常"
            },
            "crp": {
              "value": 3.0,
              "unit": "mg/L",
              "status": "正常"
            }
          },
          "urinalysis": {
            "ph": {
              "value": 6.1,
              "status": "正常"
            },
            "specific_gravity": {
              "value": 1.018,
              "status": "正常"
            },
            "protein": {
              "value": "阴性",
              "status": "正常"
            },
            "leukocytes": {
              "value": "阴性",
              "status": "正常"
            }
          },
          "blood_uric_acid_trend": {
            "data": [
              {"time": "2024-10", "value": 418},
              {"time": "2024-11", "value": 528},
              {"time": "2024-12", "value": 460},
              {"time": "2025-01", "value": 518},
              {"time": "2025-02", "value": 468},
              {"time": "2025-03", "value": 428}
            ]
          },
          "uric_acid_trend": {
            "current": 435,
            "unit": "μmol/L",
            "status": "轻度偏高",
            "reference_range": {
              "male": "150~420 μmol/L",
              "female": "90~360 μmol/L"
            }
          }
        },
        {
          "examination_date": "2025-02-05",
          "creatinine": {
            "value": 85,
            "unit": "μmol/L",
            "status": "正常范围内"
          },
          "urea": {
            "value": 5.5,
            "unit": "mmol/L",
            "status": "正常范围内"
          },
          "blood_pressure": {
            "value": "135/82",
            "unit": "mmHg",
            "status": "超高"
          },
          "bmi": {
            "value": 25.8,
            "unit": "kg/m²",
            "status": "超重"
          },
          "uric_acid": {
            "blood_uric_acid": {
              "value": 435,
              "unit": "μmol/L",
              "status": "偏高"
            },
            "24h_uric_acid": {
              "value": 3.6,
              "unit": "mmol/24h",
              "status": "正常"
            },
            "uric_acid_clearance": {
              "value": 6.0,
              "unit": "ml/min",
              "status": "偏低"
            }
          },
          "24h_urine_test": {
            "feua": {
              "value": 4.5,
              "unit": "%",
              "status": "偏低"
            },
            "uric_acid_excretion": {
              "value": 470,
              "unit": "mg/24h",
              "status": "偏低"
            },
            "uacr": {
              "value": 95,
              "unit": "ml/min",
              "status": "正常"
            }
          },
          "blood_biochemistry": {
            "glucose": {
              "value": 5.3,
              "unit": "mmol/L",
              "status": "正常"
            },
            "total_cholesterol": {
              "value": 5.1,
              "unit": "mmol/L",
              "status": "偏高"
            },
            "triglycerides": {
              "value": 1.7,
              "unit": "mmol/L",
              "status": "正常"
            },
            "crp": {
              "value": 3.0,
              "unit": "mg/L",
              "status": "正常"
            }
          },
          "urinalysis": {
            "ph": {
              "value": 6.1,
              "status": "正常"
            },
            "specific_gravity": {
              "value": 1.018,
              "status": "正常"
            },
            "protein": {
              "value": "阴性",
              "status": "正常"
            },
            "leukocytes": {
              "value": "阴性",
              "status": "正常"
            }
          },
          "blood_uric_acid_trend": {
            "data": [
              {"time": "2024-10", "value": 418},
              {"time": "2024-11", "value": 528},
              {"time": "2024-12", "value": 460},
              {"time": "2025-01", "value": 518},
              {"time": "2025-02", "value": 468},
              {"time": "2025-03", "value": 428}
            ]
          },
          "uric_acid_trend": {
            "current": 435,
            "unit": "μmol/L",
            "status": "轻度偏高",
            "reference_range": {
              "male": "150~420 μmol/L",
              "female": "90~360 μmol/L"
            }
          }
        }
      ]
    },
    {
      "patient_id": "PT2025003",
      "name": "徐雄",
      examinationList: [
        {
          "examination_date": "2025-04-12",
          "creatinine": {
            "value": 92,
            "unit": "μmol/L",
            "status": "正常范围内"
          },
          "urea": {
            "value": 6.0,
            "unit": "mmol/L",
            "status": "正常范围内"
          },
          "blood_pressure": {
            "value": "140/88",
            "unit": "mmHg",
            "status": "超高"
          },
          "bmi": {
            "value": 27.2,
            "unit": "kg/m²",
            "status": "超重"
          },
          "uric_acid": {
            "blood_uric_acid": {
              "value": 450,
              "unit": "μmol/L",
              "status": "偏高"
            },
            "24h_uric_acid": {
              "value": 4.0,
              "unit": "mmol/24h",
              "status": "正常"
            },
            "uric_acid_clearance": {
              "value": 6.5,
              "unit": "ml/min",
              "status": "偏低"
            }
          },
          "24h_urine_test": {
            "feua": {
              "value": 5.0,
              "unit": "%",
              "status": "偏低"
            },
            "uric_acid_excretion": {
              "value": 500,
              "unit": "mg/24h",
              "status": "偏低"
            },
            "uacr": {
              "value": 102,
              "unit": "ml/min",
              "status": "正常"
            }
          },
          "blood_biochemistry": {
            "glucose": {
              "value": 5.5,
              "unit": "mmol/L",
              "status": "正常"
            },
            "total_cholesterol": {
              "value": 5.3,
              "unit": "mmol/L",
              "status": "偏高"
            },
            "triglycerides": {
              "value": 1.9,
              "unit": "mmol/L",
              "status": "正常"
            },
            "crp": {
              "value": 3.5,
              "unit": "mg/L",
              "status": "正常"
            }
          },
          "urinalysis": {
            "ph": {
              "value": 6.3,
              "status": "正常"
            },
            "specific_gravity": {
              "value": 1.022,
              "status": "正常"
            },
            "protein": {
              "value": "阴性",
              "status": "正常"
            },
            "leukocytes": {
              "value": "阴性",
              "status": "正常"
            }
          },
          "blood_uric_acid_trend": {
            "data": [
              {"time": "2024-10", "value": 418},
              {"time": "2024-11", "value": 528},
              {"time": "2024-12", "value": 460},
              {"time": "2025-01", "value": 518},
              {"time": "2025-02", "value": 468},
              {"time": "2025-03", "value": 428}
            ]
          },
          "uric_acid_trend": {
            "current": 450,
            "unit": "μmol/L",
            "status": "轻度偏高",
            "reference_range": {
              "male": "150~420 μmol/L",
              "female": "90~360 μmol/L"
            }
          }
        },
        {
          "examination_date": "2025-03-15",
          "creatinine": {
            "value": 92,
            "unit": "μmol/L",
            "status": "正常范围内"
          },
          "urea": {
            "value": 6.0,
            "unit": "mmol/L",
            "status": "正常范围内"
          },
          "blood_pressure": {
            "value": "140/88",
            "unit": "mmHg",
            "status": "超高"
          },
          "bmi": {
            "value": 27.2,
            "unit": "kg/m²",
            "status": "超重"
          },
          "uric_acid": {
            "blood_uric_acid": {
              "value": 450,
              "unit": "μmol/L",
              "status": "偏高"
            },
            "24h_uric_acid": {
              "value": 4.0,
              "unit": "mmol/24h",
              "status": "正常"
            },
            "uric_acid_clearance": {
              "value": 6.5,
              "unit": "ml/min",
              "status": "偏低"
            }
          },
          "24h_urine_test": {
            "feua": {
              "value": 5.0,
              "unit": "%",
              "status": "偏低"
            },
            "uric_acid_excretion": {
              "value": 500,
              "unit": "mg/24h",
              "status": "偏低"
            },
            "uacr": {
              "value": 102,
              "unit": "ml/min",
              "status": "正常"
            }
          },
          "blood_biochemistry": {
            "glucose": {
              "value": 5.5,
              "unit": "mmol/L",
              "status": "正常"
            },
            "total_cholesterol": {
              "value": 5.3,
              "unit": "mmol/L",
              "status": "偏高"
            },
            "triglycerides": {
              "value": 1.9,
              "unit": "mmol/L",
              "status": "正常"
            },
            "crp": {
              "value": 3.5,
              "unit": "mg/L",
              "status": "正常"
            }
          },
          "urinalysis": {
            "ph": {
              "value": 6.3,
              "status": "正常"
            },
            "specific_gravity": {
              "value": 1.022,
              "status": "正常"
            },
            "protein": {
              "value": "阴性",
              "status": "正常"
            },
            "leukocytes": {
              "value": "阴性",
              "status": "正常"
            }
          },
          "blood_uric_acid_trend": {
            "data": [
              {"time": "2024-10", "value": 418},
              {"time": "2024-11", "value": 528},
              {"time": "2024-12", "value": 460},
              {"time": "2025-01", "value": 518},
              {"time": "2025-02", "value": 468},
              {"time": "2025-03", "value": 428}
            ]
          },
          "uric_acid_trend": {
            "current": 450,
            "unit": "μmol/L",
            "status": "轻度偏高",
            "reference_range": {
              "male": "150~420 μmol/L",
              "female": "90~360 μmol/L"
            }
          }
        },
        {
          "examination_date": "2025-02-05",
          "creatinine": {
            "value": 92,
            "unit": "μmol/L",
            "status": "正常范围内"
          },
          "urea": {
            "value": 6.0,
            "unit": "mmol/L",
            "status": "正常范围内"
          },
          "blood_pressure": {
            "value": "140/88",
            "unit": "mmHg",
            "status": "超高"
          },
          "bmi": {
            "value": 27.2,
            "unit": "kg/m²",
            "status": "超重"
          },
          "uric_acid": {
            "blood_uric_acid": {
              "value": 450,
              "unit": "μmol/L",
              "status": "偏高"
            },
            "24h_uric_acid": {
              "value": 4.0,
              "unit": "mmol/24h",
              "status": "正常"
            },
            "uric_acid_clearance": {
              "value": 6.5,
              "unit": "ml/min",
              "status": "偏低"
            }
          },
          "24h_urine_test": {
            "feua": {
              "value": 5.0,
              "unit": "%",
              "status": "偏低"
            },
            "uric_acid_excretion": {
              "value": 500,
              "unit": "mg/24h",
              "status": "偏低"
            },
            "uacr": {
              "value": 102,
              "unit": "ml/min",
              "status": "正常"
            }
          },
          "blood_biochemistry": {
            "glucose": {
              "value": 5.5,
              "unit": "mmol/L",
              "status": "正常"
            },
            "total_cholesterol": {
              "value": 5.3,
              "unit": "mmol/L",
              "status": "偏高"
            },
            "triglycerides": {
              "value": 1.9,
              "unit": "mmol/L",
              "status": "正常"
            },
            "crp": {
              "value": 3.5,
              "unit": "mg/L",
              "status": "正常"
            }
          },
          "urinalysis": {
            "ph": {
              "value": 6.3,
              "status": "正常"
            },
            "specific_gravity": {
              "value": 1.022,
              "status": "正常"
            },
            "protein": {
              "value": "阴性",
              "status": "正常"
            },
            "leukocytes": {
              "value": "阴性",
              "status": "正常"
            }
          },
          "blood_uric_acid_trend": {
            "data": [
              {"time": "2024-10", "value": 418},
              {"time": "2024-11", "value": 528},
              {"time": "2024-12", "value": 460},
              {"time": "2025-01", "value": 518},
              {"time": "2025-02", "value": 468},
              {"time": "2025-03", "value": 428}
            ]
          },
          "uric_acid_trend": {
            "current": 450,
            "unit": "μmol/L",
            "status": "轻度偏高",
            "reference_range": {
              "male": "150~420 μmol/L",
              "female": "90~360 μmol/L"
            }
          }
        }
      ]
    },
    {
      "patient_id": "PT2025004",
      "name": "涛林",
      examinationList: [
        {
          "examination_date": "2025-04-12",
          "creatinine": {
            "value": 88,
            "unit": "μmol/L",
            "status": "正常范围内"
          },
          "urea": {
            "value": 5.7,
            "unit": "mmol/L",
            "status": "正常范围内"
          },
          "blood_pressure": {
            "value": "142/90",
            "unit": "mmHg",
            "status": "超高"
          },
          "bmi": {
            "value": 26.8,
            "unit": "kg/m²",
            "status": "超重"
          },
          "uric_acid": {
            "blood_uric_acid": {
              "value": 440,
              "unit": "μmol/L",
              "status": "偏高"
            },
            "24h_uric_acid": {
              "value": 3.9,
              "unit": "mmol/24h",
              "status": "正常"
            },
            "uric_acid_clearance": {
              "value": 6.3,
              "unit": "ml/min",
              "status": "偏低"
            }
          },
          "24h_urine_test": {
            "feua": {
              "value": 4.9,
              "unit": "%",
              "status": "偏低"
            },
            "uric_acid_excretion": {
              "value": 490,
              "unit": "mg/24h",
              "status": "偏低"
            },
            "uacr": {
              "value": 100,
              "unit": "ml/min",
              "status": "正常"
            }
          },
          "blood_biochemistry": {
            "glucose": {
              "value": 5.6,
              "unit": "mmol/L",
              "status": "正常"
            },
            "total_cholesterol": {
              "value": 5.4,
              "unit": "mmol/L",
              "status": "偏高"
            },
            "triglycerides": {
              "value": 2.0,
              "unit": "mmol/L",
              "status": "正常"
            },
            "crp": {
              "value": 3.8,
              "unit": "mg/L",
              "status": "正常"
            }
          },
          "urinalysis": {
            "ph": {
              "value": 6.4,
              "status": "正常"
            },
            "specific_gravity": {
              "value": 1.021,
              "status": "正常"
            },
            "protein": {
              "value": "阴性",
              "status": "正常"
            },
            "leukocytes": {
              "value": "阴性",
              "status": "正常"
            }
          },
          "blood_uric_acid_trend": {
            "data": [
              {"time": "2024-10", "value": 418},
              {"time": "2024-11", "value": 528},
              {"time": "2024-12", "value": 460},
              {"time": "2025-01", "value": 518},
              {"time": "2025-02", "value": 468},
              {"time": "2025-03", "value": 428}
            ]
          },
          "uric_acid_trend": {
            "current": 440,
            "unit": "μmol/L",
            "status": "轻度偏高",
            "reference_range": {
              "male": "150~420 μmol/L",
              "female": "90~360 μmol/L"
            }
          }
        },
        {
          "examination_date": "2025-03-15",
          "creatinine": {
            "value": 88,
            "unit": "μmol/L",
            "status": "正常范围内"
          },
          "urea": {
            "value": 5.7,
            "unit": "mmol/L",
            "status": "正常范围内"
          },
          "blood_pressure": {
            "value": "142/90",
            "unit": "mmHg",
            "status": "超高"
          },
          "bmi": {
            "value": 26.8,
            "unit": "kg/m²",
            "status": "超重"
          },
          "uric_acid": {
            "blood_uric_acid": {
              "value": 440,
              "unit": "μmol/L",
              "status": "偏高"
            },
            "24h_uric_acid": {
              "value": 3.9,
              "unit": "mmol/24h",
              "status": "正常"
            },
            "uric_acid_clearance": {
              "value": 6.3,
              "unit": "ml/min",
              "status": "偏低"
            }
          },
          "24h_urine_test": {
            "feua": {
              "value": 4.9,
              "unit": "%",
              "status": "偏低"
            },
            "uric_acid_excretion": {
              "value": 490,
              "unit": "mg/24h",
              "status": "偏低"
            },
            "uacr": {
              "value": 100,
              "unit": "ml/min",
              "status": "正常"
            }
          },
          "blood_biochemistry": {
            "glucose": {
              "value": 5.6,
              "unit": "mmol/L",
              "status": "正常"
            },
            "total_cholesterol": {
              "value": 5.4,
              "unit": "mmol/L",
              "status": "偏高"
            },
            "triglycerides": {
              "value": 2.0,
              "unit": "mmol/L",
              "status": "正常"
            },
            "crp": {
              "value": 3.8,
              "unit": "mg/L",
              "status": "正常"
            }
          },
          "urinalysis": {
            "ph": {
              "value": 6.4,
              "status": "正常"
            },
            "specific_gravity": {
              "value": 1.021,
              "status": "正常"
            },
            "protein": {
              "value": "阴性",
              "status": "正常"
            },
            "leukocytes": {
              "value": "阴性",
              "status": "正常"
            }
          },
          "blood_uric_acid_trend": {
            "data": [
              {"time": "2024-10", "value": 418},
              {"time": "2024-11", "value": 528},
              {"time": "2024-12", "value": 460},
              {"time": "2025-01", "value": 518},
              {"time": "2025-02", "value": 468},
              {"time": "2025-03", "value": 428}
            ]
          },
          "uric_acid_trend": {
            "current": 440,
            "unit": "μmol/L",
            "status": "轻度偏高",
            "reference_range": {
              "male": "150~420 μmol/L",
              "female": "90~360 μmol/L"
            }
          }
        },
        {
          "examination_date": "2025-02-05",
          "creatinine": {
            "value": 88,
            "unit": "μmol/L",
            "status": "正常范围内"
          },
          "urea": {
            "value": 5.7,
            "unit": "mmol/L",
            "status": "正常范围内"
          },
          "blood_pressure": {
            "value": "142/90",
            "unit": "mmHg",
            "status": "超高"
          },
          "bmi": {
            "value": 26.8,
            "unit": "kg/m²",
            "status": "超重"
          },
          "uric_acid": {
            "blood_uric_acid": {
              "value": 440,
              "unit": "μmol/L",
              "status": "偏高"
            },
            "24h_uric_acid": {
              "value": 3.9,
              "unit": "mmol/24h",
              "status": "正常"
            },
            "uric_acid_clearance": {
              "value": 6.3,
              "unit": "ml/min",
              "status": "偏低"
            }
          },
          "24h_urine_test": {
            "feua": {
              "value": 4.9,
              "unit": "%",
              "status": "偏低"
            },
            "uric_acid_excretion": {
              "value": 490,
              "unit": "mg/24h",
              "status": "偏低"
            },
            "uacr": {
              "value": 100,
              "unit": "ml/min",
              "status": "正常"
            }
          },
          "blood_biochemistry": {
            "glucose": {
              "value": 5.6,
              "unit": "mmol/L",
              "status": "正常"
            },
            "total_cholesterol": {
              "value": 5.4,
              "unit": "mmol/L",
              "status": "偏高"
            },
            "triglycerides": {
              "value": 2.0,
              "unit": "mmol/L",
              "status": "正常"
            },
            "crp": {
              "value": 3.8,
              "unit": "mg/L",
              "status": "正常"
            }
          },
          "urinalysis": {
            "ph": {
              "value": 6.4,
              "status": "正常"
            },
            "specific_gravity": {
              "value": 1.021,
              "status": "正常"
            },
            "protein": {
              "value": "阴性",
              "status": "正常"
            },
            "leukocytes": {
              "value": "阴性",
              "status": "正常"
            }
          },
          "blood_uric_acid_trend": {
            "data": [
              {"time": "2024-10", "value": 418},
              {"time": "2024-11", "value": 528},
              {"time": "2024-12", "value": 460},
              {"time": "2025-01", "value": 518},
              {"time": "2025-02", "value": 468},
              {"time": "2025-03", "value": 428}
            ]
          },
          "uric_acid_trend": {
            "current": 440,
            "unit": "μmol/L",
            "status": "轻度偏高",
            "reference_range": {
              "male": "150~420 μmol/L",
              "female": "90~360 μmol/L"
            }
          }
        }
      ],
    }
  ]
};

/**
 * 获取所有患者数据
 */
export function getAllPatients() {
  return patientLabData.patients;
}

/**
 * 根据患者ID查找患者
 * @param patientId 患者ID
 */
export function getPatientById(patientId: string) {
  return patientLabData.patients.find(p => p.patient_id === patientId);
}

/**
 * 根据姓名查找患者(模糊匹配)
 * @param name 患者姓名
 */
export function getPatientsByName(name: string) {
  return patientLabData.patients.filter(p =>
    p.name.includes(name)
  );
}

/**
 * 获取异常检验结果的患者
 * @param testType 检验类型(可选)
 */
export function getPatientsWithAbnormalResults(testType) {
  return patientLabData.patients.filter(patient => {
    if (!testType) {
      // 检查所有检验项目是否有异常
      return Object.values(patient.lab_results).some(result => {
        if (typeof result === 'object' && 'status' in result) {
          return !result.status.includes('正常');
        }
        return false;
      });
    }

    // 检查特定检验项目
    const testResult = patient.lab_results[testType];
    if (testResult && 'status' in testResult) {
      return !testResult.status.includes('正常');
    }
    return false;
  });
}

/**
 * 获取血尿酸趋势数据
 * @param patientId 患者ID
 */
export function getUricAcidTrendData(patientId: string): { time: string; value: number }[] | undefined {
  const patient = getPatientById(patientId);
  return patient?.lab_results.blood_uric_acid_trend.data;
}

/**
 * 获取患者BMI分类统计
 */
export function getBmiStatistics(): {
  normal: number;
  overweight: number;
  obese: number;
} {
  const result = {
    normal: 0,
    overweight: 0,
    obese: 0
  };

  patientLabData.patients.forEach(patient => {
    const bmiStatus = patient.lab_results.bmi.status;
    if (bmiStatus.includes('正常')) {
      result.normal++;
    } else if (bmiStatus.includes('超重')) {
      result.overweight++;
    } else if (bmiStatus.includes('肥胖')) {
      result.obese++;
    }
  });

  return result;
}
